package com.rc.pojo.dto.address;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;

@Data
public class AddressAddDTO {
    @ApiModelProperty("省份")
    private String province;
    @ApiModelProperty("城市")
    private String city;
    @ApiModelProperty("市区")
    private String town;
    @ApiModelProperty("联系电话")
    @Pattern(regexp = "^1[3-9]\\d{9}$")
    private String phone;
    @ApiModelProperty("街道")
    private String street;
    @ApiModelProperty("联系人姓名")
    private String contact;
    @ApiModelProperty("是否默认")
    private Boolean isDefault;
    @ApiModelProperty("备注")
    private String notes;
}
